package org.jamin.lending.service;

import org.jamin.lending.domain.entity.Auser;
import org.jamin.lending.domain.entity.BorrowInfo;
import org.jamin.lending.domain.form.manger.BorrowInfoForm;
import org.jamin.lending.domain.form.manger.VerifyBorrowForm;
import org.springframework.data.domain.Page;

public interface BorrowService {

    /**
     * @param borrowInfoForm
     * @return
     */
    Page<BorrowInfo> findBorrowList(BorrowInfoForm borrowInfoForm);

    Page<BorrowInfo> findBorrowListByStatus(BorrowInfoForm borrowInfoForm, BorrowInfo.Status status);

    void createBorrow(BorrowInfo borrowInfo, Auser auser);

    void preliminaryBorrow(VerifyBorrowForm verifyBorrowForm,Auser auser);

}
